package ai.peanut.consumer.a.controller;

import ai.peanut.dubbo.inter.a.ATestService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestController
public class TestControllerFailfast {
//    //timeout 可以不指定，但是version一定要指定 不然会找不到服务 直连需要加url="dubbo://localhost:20880"
//    @Reference(version = "1.0.0",cluster="failfast")
//    private ATestService aTestService;
//
//
//    @GetMapping(value="/dubbo3")
//    public String sayHello(){
//
//        String result = aTestService.demo(555);
//        return result;
//    }
}
